import { request } from '@/utils/request';

// 绑卡验证授权
export const registerHealthCardPreAuth = data =>
  request.post(`/electronicHealthCard/registerHealthCardPreAuth`, data);

// 验证注册/绑卡
export const registerHealthCardPreFill = data =>
  request.post(`/electronicHealthCard/registerHealthCardPreFill`, data);

// 健康卡授权码获取健康卡信息
export const healthCardByHealthCode = data =>
  request.post(`/electronicHealthCard/healthCardByHealthCode`, data);

// 获取建档信息（卡管异常流程）
export const getRegInfoByCode = data =>
  request.post(`/electronicHealthCard/getRegInfoByCode`, data);

// 实人认证生成orderId接口
export const registerUniformVerifyOrder = data =>
  request.post(`/electronicHealthCard/registerUniformVerifyOrder`, data);

// 实人用户信息获取接口
export const getOrderInfoByOrderId = data =>
  request.post(`/electronicHealthCard/getOrderInfoByOrderId`, data);

// 实人验证结果查询接口
export const checkUniformVerifyResult = data =>
  request.post(`/electronicHealthCard/checkUniformVerifyResult`, data);

// 实人验证结果通知接口
export const registerRealPersonAuthOrder = data =>
  request.post(`/electronicHealthCard/registerRealPersonAuthOrder`, data);

// 用卡数据检测接口
export const reportHisData = data =>
  request.post(`/electronicHealthCard/reportHisData`, data);

// 获取健康卡二维码接口
export const getDynamicQrCode = data =>
  request.post(`/electronicHealthCard/getDynamicQrCode`, data);
